<?php
/**
 * 
 * @author	ronnie  (comdeng@gmail.com)
 * @link		http://fillphp.com/
 * @date		2014-5-3 上午2:38:50
 * @file		User.php
 * @description 
 */
namespace com\demo\helper;

class User extends \fillphp\helper\Helper
{
	function getLists($lists, $key)
	{
		if (empty($lists)) return array();
		
		$userIds = array();
		foreach($lists as $list) {
			$userIds[] = intval($list[$key]);
		}
		$userIds = array_unique($userIds);
		
		return array(
			'40' => array(
				'user_id' => 40,
				'user_name' => 'ronnie',
			),
			'41' => array(
					'user_id' => 41,
					'user_name' => 'still',
			),
		);
	}	
}